<?
echo $_SERVER['HTTP_HOST']."<br />";
echo "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
?>